<?php 
namespace Home\Controller;
use Think\Controller;
class CatController extends Controller{
	public function cat(){
	    $cat_id = I('get.cat_id');
	    $this->assign('his',array_reverse(session('history')));
		$cats = D('Goods')->field('goods_id,goods_name,goods_img,shop_price,market_price')->where("cat_id=$cat_id")->select();
		$this->assign('cat_goods',$cats);
		$this->display();
	}
}